package com.gexiaobao.pigeon.app.model.bean

import com.bin.david.form.annotation.SmartColumn
import com.bin.david.form.annotation.SmartTable

/**
 * @author:hxw
 * @date  :2023/1/11
 * @desc  :
 */
class TrainingResultResponse(

    var list: ArrayList<ResultList> = arrayListOf()

) : java.io.Serializable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @SmartTable(name = "驯放结果")
    class ResultList(

        var pigeonId: Int = 0,

        @SmartColumn(id = 1, name = "足环号", fixed = true)
        var ringId: String = "",
        var ringSn: String = "",

        @SmartColumn(id = 6, name = "寄养人")
        var fosterName: String = "",
        var sex: Int = 0,

//        @SmartColumn(id = 5, name = "羽色")
//        var featherColorStr: String = "",
        @SmartColumn(id = 5, name = "羽色")
        var featherColor: String = "",

        var eyePattern: Int = 0,

        @SmartColumn(id = 7, name = "昵称")
        var pigeonName: String = "",

        @SmartColumn(id = 2, name = "放飞时间")
        var startTime: String = "",

        @SmartColumn(id = 3, name = "归巢时间")
        var scanStatusStr: String = "",
        var scanStatus: Int = -1, //1 已归巢 0 未归巢
        var homingTime: String = "",

        @SmartColumn(id = 4, name = "分速(米/分)")
        var homingSpeed: String = "",

        @SmartColumn(id = 0, name = "排名", fixed = true)
        var rank: Int = 0

    ) : java.io.Serializable

}